package masquerade.companion;

import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.app.ListActivity;
import android.content.Intent;

public class Disciplinas extends ListActivity {
	
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		// Create an array of Strings, that will be put to our ListActivity
		String[] menudisc = getResources().getStringArray(R.array.ListaDisciplinas);
		// Use your own layout and point the adapter to the UI elements which
		// contains the label
		this.setListAdapter(new ArrayAdapter<String>(this, R.layout.list_menu,
				R.id.list_menu, menudisc));
	}

	@Override
	protected void onListItemClick(ListView l, View v, int position, long id) {
		switch (position) {
		case 0:
			Intent i0 =new Intent();
    		i0.setClass(this, Animalismo.class);
    		startActivity(i0);
			break;
		case 1:
			Intent i1 =new Intent();
    		i1.setClass(this, Auspicios.class);
    		startActivity(i1);
    		break;
		case 2:
			Intent i2 =new Intent();
    		i2.setClass(this, Demencia.class);
    		startActivity(i2);
    		break;
		case 3:
    		Intent i3 =new Intent();
    		i3.setClass(this, Dominacao.class);
    		startActivity(i3);
    		break;
		case 4:
			Intent i4 =new Intent();
    		i4.setClass(this, Fortitude.class);
    		startActivity(i4);
    		break;
		
		case 5:
			Intent i5 =new Intent();
    		i5.setClass(this, Metamorfose.class);
    		startActivity(i5);
    		break;
		case 6:
			Intent i6 =new Intent();
    		i6.setClass(this, Necromancia.class);
    		startActivity(i6);
    		break;
		case 7:
    		Intent i7 =new Intent();
    		i7.setClass(this, Ofuscacao.class);
    		startActivity(i7);
    		break;
		case 8:
			Intent i8 =new Intent();
    		i8.setClass(this, Potencia.class);
    		startActivity(i8);
    		break;
		case 9:
			Intent i9 =new Intent();
    		i9.setClass(this, Presenca.class);
    		startActivity(i9);
    		break;
		case 10:
			Intent i10 =new Intent();
    		i10.setClass(this, Quietus.class);
    		startActivity(i10);
    		break;
		case 11:
			Intent i11 =new Intent();
    		i11.setClass(this, Quimerismo.class);
    		startActivity(i11);
    		break;
		case 12:
			Intent i12 =new Intent();
    		i12.setClass(this, Rapidez.class);
    		startActivity(i12);
    		break;
		case 13:
			Intent i13 =new Intent();
    		i13.setClass(this, Serpentis.class);
    		startActivity(i13);
    		break;
		case 14:
			Intent i14 =new Intent();
    		i14.setClass(this, Taumaturgia.class);
    		startActivity(i14);
    		break;
		case 15:
			Intent i15 =new Intent();
    		i15.setClass(this, Tenebrosidade.class);
    		startActivity(i15);
    		break;
		case 16:
			Intent i16 =new Intent();
    		i16.setClass(this, Vicissitude.class);
    		startActivity(i16);
    		break;	
		}
	}
}
